import pandas as pd
dict={'姓名':["赵文","李蒙",'刘武','荷花'],
      '职务':['主管','副主管','员工','员工'],
      '基本工资':[8000,7000,5000,5000],
      "联系方式":['15202369852','15023695820','13621358962','13102659860']}
index=['1','2','3','4']
df=pd.DataFrame(dict,index)
print(df)
\ No newline at end of file
print(df)
df.loc['5']=['李华','员工','5200','136xxxx235']
df.insert(1,'性别',['女','男','男','女','女'],)
print(df)
df1=df.rename({'员工':'副主管'},axis='columns')
df1['职务']=['主管','副主管','副主管','员工','员工']
print(df1)
print(df1.iloc[0:3])
df1.to_csv('员工信息.csv',encoding="GBK")